import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
  // 用户信息
  state: {
    // token
    token: '',
    essaysInfo: '',
  },
  mutations: {
    getToken(state, token) {
      state.token = token;
    },
    getEssats(state, essays) {
      state.essaysInfo = essays;
    },
  },
  actions: {},
  modules: {},
});
